#!/usr/bin/env python

def funcOuter():
    x=2
    print ( 'x is ', x )

    def funcInner():
        nonlocal x
        x=5
        
    funcInner()
    print ( 'Change local x to ', x )

funcOuter()
